home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / EVERY.DOC < prev    next >
Text File  |  1995-12-18  |  2KB  |  75 lines

  1. ------------------------------------------------------------------------
  2. EVERY   Do once EVERY ......            Ver 1.0 (c) 1994 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5.     EVERY.COM is used to control daily and/or weekly jobs that must
  6.     be done once only. EVERY.COM should be used in the AUTOEXEC.BAT.
  7.  
  8.     There is no extra control file. The program keeps track of its last
  9.     execution in the date & time stamp of the program file (see note).
  10.  
  11. (1) Daily jobs  -  Syntax: EVERY DAY
  12.  
  13.     Errorlevel:
  14.     0   the command EVERY DAY is executed for the first time this day
  15.     1   this command has already been executed today
  16.  
  17.     Sample batch:
  18.         .....
  19.         every day
  20.         if errorlevel 1 goto CONT
  21.         ::
  22.         :: run daily job
  23.         ::
  24.         :CONT
  25.  
  26.     or:
  27.         every day
  28.         if not errorlevel 1 call DAILY.BAT
  29.  
  30.  
  31. (2) Weekly jobs  -  Syntax: EVERY SUN,MON,Tuesday,...
  32.  
  33.     One or more days of week may be given (max 6, else see EVERY DAY)
  34.     separated by blank, comma or "+".
  35.     Case ignored. Only the first 3 letters are significant.
  36.  
  37.     Errorlevel:
  38.     0   first time on (one of) the specified day(s)
  39.     1   this command has already returned errorlevel 0 today
  40.     2   today is not (one of) the day(s) specified
  41.  
  42. Note:
  43.  
  44.     The time & date stamp of EVERY.COM is updated each time errorlevel 0
  45.     is returned, so the program can find out, if it has been run already
  46.     on the same day.
  47.  
  48.     In addition the daily and weekly modes are individually controlled by
  49.     extra bits (in the seconds field of the time stamp).
  50.  
  51.     So, if you have EVERY DAY and EVERY MONDAY in your AUTOEXEC.BAT,
  52.     both will return errorlevel 0 for the first time on Monday.
  53.  
  54.     You may use one EVERY DAY command and several EVERY <day of week>
  55.     commands in the AUTOEXEC.BAT. However any day of the week may only
  56.     occur once.
  57.  
  58. (3) Status  - Syntax: EVERY  (no command parameters)
  59.  
  60.     Example output:  "daily & weekly job(s) done today"
  61.  
  62. (4) Reset   - Syntax: EVERY RES
  63.  
  64.     File tag is set to current date, 0:00 h, control bits reset.
  65.     Status report:   "no job(s) done today"
  66.  
  67. (5) Help    - Syntax: EVERY /?
  68.  
  69. Errors:
  70.  
  71.     Syntax errors or error opening file will issue a message to STDERR
  72.     and return errorlevel 255.
  73.  
  74. = 31 AUG 1994
  75.